/*
 * An XML document type.
 * Localname: AddressRequestResponse
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.AddressRequestResponseDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one AddressRequestResponse(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class AddressRequestResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.AddressRequestResponseDocument
{
    
    public AddressRequestResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ADDRESSREQUESTRESPONSE$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "AddressRequestResponse");
    
    
    /**
     * Gets the "AddressRequestResponse" element
     */
    public boolean getAddressRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDRESSREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "AddressRequestResponse" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetAddressRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ADDRESSREQUESTRESPONSE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AddressRequestResponse" element
     */
    public void setAddressRequestResponse(boolean addressRequestResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDRESSREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADDRESSREQUESTRESPONSE$0);
            }
            target.setBooleanValue(addressRequestResponse);
        }
    }
    
    /**
     * Sets (as xml) the "AddressRequestResponse" element
     */
    public void xsetAddressRequestResponse(org.apache.xmlbeans.XmlBoolean addressRequestResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ADDRESSREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ADDRESSREQUESTRESPONSE$0);
            }
            target.set(addressRequestResponse);
        }
    }
}
